package com.neusoft.databus.policy.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.databus.policy.enums.PolicyType;
import com.neusoft.databus.policy.model.Policy;

public interface PolicyRepository extends JpaRepository<Policy, Long>, CustomizedPolicyRepository {

    public Policy findByCode(String code);

    public List<Policy> findByDisabled(Boolean disabled);

    public List<Policy> findByPolicyTypeIn(List<PolicyType> types);
}
